@(branch: String,
  repository: gitbucket.core.service.RepositoryService.RepositoryInfo,
  pathList: List[String],
  fileName: String,
  content: gitbucket.core.util.JGitUtil.ContentInfo)(implicit context: gitbucket.core.controller.Context)
@import gitbucket.core.view.helpers
@gitbucket.core.html.main(s"Deleting ${context.path} at ${fileName} - ${repository.owner}/${repository.name}", Some(repository)) {
  @gitbucket.core.html.menu("files", repository){
    <form method="POST" action="@helpers.url(repository)/remove" validate="true">
      <div class="head">
        <a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch)">@repository.name</a> /
        @pathList.zipWithIndex.map { case (section, i) =>
          <a href="@helpers.url(repository)/tree/@helpers.encodeRefName(branch)/@pathList.take(i + 1).mkString("/")">@section</a> /
        }
        @fileName
        <input type="hidden" name="fileName" id="fileName" value="@fileName"/>
        <input type="hidden" name="branch" id="branch" value="@branch"/>
        <input type="hidden" name="path" id="path" value="@pathList.mkString("/")"/>
      </div>
      <table class="table table-bordered">
        <th style="font-weight: normal;" class="box-header">
          @fileName
          <div class="pull-right align-right">
            <a href="@helpers.url(repository)/blob/@branch/@{(pathList ::: List(fileName)).mkString("/")}" class="btn btn-small">View</a>
          </div>
        </th>
        <tr>
          <td>
            <div id="diffText"></div>
            <textarea id="newText" style="display: none;" data-file-name="@fileName"></textarea>
            <textarea id="oldText" style="display: none;" data-file-name="@fileName">@content.content</textarea>
          </td>
        </tr>
      </table>
      <div class="issue-avatar-image">@helpers.avatarLink(context.loginAccount.get.userName, 48)</div>
        <div class="box issue-comment-box">
        <div class="box-content">
          <div>
            <strong>Commit changes</strong>
          </div>
          <div>
            <input type="text" name="message" style="width: 98%;"/>
          </div>
          <div style="text-align: right;">
            <a href="@helpers.url(repository)/blob/@helpers.encodeRefName(branch)/@pathList.mkString("/")" class="btn btn-danger">Cancel</a>
            <input type="submit" id="commit" class="btn btn-success" value="Commit changes"/>
          </div>
        </div>
      </div>
    </form>
  }
}
<script type="text/javascript" src="@helpers.assets/vendors/jsdifflib/difflib.js"></script>
<link href="@helpers.assets/vendors/jsdifflib/diffview.css" type="text/css" rel="stylesheet" />
<script>
$(function(){
  diffUsingJS('oldText', 'newText', 'diffText', 1);
});
</script>